package com.example.glgk.service.supportFile;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.glgk.dto.supportFile.SupportMaterialFileDto;
import com.example.glgk.entity.SupportMaterialFile;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author lxk
 */
public interface ISupportFileService extends IService<SupportMaterialFile> {


     String upload(MultipartFile[] files, String dept, Integer supportId,Integer fileId,String taskId) throws Exception;

     List<SupportMaterialFileDto> searchSupportFile(String dept,String taskId);

     String deleteFile(Integer fileId,String path,String[] fileNames);

     List<Map<String, String>> queryAdditionalFile(String dept, String taskId,String indexId);

     String uploadAdditionalFile(MultipartFile[] files, String dept, String indexId, String fileId,String taskId) throws Exception;

     String deleteAdditionalFile(String fileId,String path,String[] fileNames);

     String deleteFiles(String path,String[] fileNames);
}
